home *** CD-ROM | disk | FTP | other *** search
- /********************************************
- ; File: NoteSyn.h
- ;
- ;
- ; Copyright Apple Computer, Inc. 1986, 1987, 1988
- ; All Rights Reserved
- ;
- ********************************************/
-
- #ifndef __types__
- #include <types.h>
- #endif
-
- #ifndef __notesyn__
- #define __notesyn__
-
- #define nsAlreadyInit 0x1901 /* error - Note Syn already initialized */
- #define nsSndNotInit 0x1902 /* error - Sound Tools not initialized */
- #define nsNotAvail 0x1921 /* error - generator not available */
- #define nsBadGenNum 0x1922 /* error - bad generator number */
- #define nsNotInit 0x1923 /* error - Note Syn not initialized */
- #define nsGenAlreadyOn 0x1924 /* error - generator already on */
-
- #define soundWrongVer 0x1925 /*error - incompatible versions of Sound and NoteSyn */
-
- typedef struct Envelope {
- Byte st1BkPt; /* Envelope - */
- Word st1Increment; /* Envelope - */
- Byte st2BkPt; /* Envelope - */
- Word st2Increment; /* Envelope - */
- Byte st3BkPt; /* Envelope - */
- Word st3Increment; /* Envelope - */
- Byte st4BkPt; /* Envelope - */
- Word st4Increment; /* Envelope - */
- Byte st5BkPt; /* Envelope - */
- Word st5Increment; /* Envelope - */
- Byte st6BkPt; /* Envelope - */
- Word st6Increment; /* Envelope - */
- Byte st7BkPt; /* Envelope - */
- Word st7Increment; /* Envelope - */
- Byte st8BkPt; /* Envelope - */
- Word st8Increment; /* Envelope - */
- } Envelope, *EnvelopePtr, **EnvelopeHndl;
-
- typedef struct Waveform {
- Byte wfTopKey; /* Waveform - */
- Byte wfWaveAddress; /* Waveform - */
- Byte wfWaveSize; /* Waveform - */
- Byte wfDocMode; /* Waveform - */
- Word wfRelPitch; /* Waveform - */
- } Waveform, *WaveformPtr, **WaveformHndl;
-
- #ifndef aWCount
- #define aWCount 1
- #endif
-
- #ifndef bWCount
- #define bWCount 1
- #endif
-
- typedef struct Instrument {
- Envelope theEnvelope; /* Instrument - */
- Byte releaseSegment; /* Instrument - */
- Byte priorityIncrement; /* Instrument - */
- Byte pitchBendRange; /* Instrument - */
- Byte vibratoDepth; /* Instrument - */
- Byte vibratoSpeed; /* Instrument - */
- Byte inSpare; /* Instrument - */
- Byte aWaveCount; /* Instrument - */
- Byte bWaveCount; /* Instrument - */
- Waveform aWaveList[aWCount];
- Waveform bWaveList[bWCount];
- } Instrument, *InstrumentPtr, **InstrumentHndl;
-
- extern pascal void NSBootInit() inline(0x0119, dispatcher);
- extern pascal void NSStartUp() inline(0x0219, dispatcher);
- extern pascal void NSShutDown() inline(0x0319, dispatcher);
- extern pascal Word NSVersion() inline(0x0419, dispatcher);
- extern pascal void NSReset() inline(0x0519, dispatcher);
- extern pascal Boolean NSStatus() inline(0x0619, dispatcher);
-
- extern pascal void AllNotesOff() inline(0x0D19, dispatcher);
- extern pascal Word AllocGen() inline(0x0919, dispatcher);
- extern pascal void DeallocGen() inline(0x0A19, dispatcher);
- extern pascal void NoteOff() inline(0x0C19, dispatcher);
- extern pascal void NoteOn() inline(0x0B19, dispatcher);
- extern pascal void NSSetUpdateRate() inline(0x0E19,dispatcher);
- extern pascal VoidProcPtr NSSetUserUpdateRtn() inline(0x0F19,dispatcher);
-
- #endif
-
-